using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_UIComposite_TabControl_Binding_TableContent_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.UIComposite.TabControl.TableContent);

            field = type.GetField("Parent", flag);
            app.RegisterCLRFieldGetter(field, get_Parent_0);
            app.RegisterCLRFieldSetter(field, set_Parent_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Parent_0, AssignFromStack_Parent_0);
            field = type.GetField("Item", flag);
            app.RegisterCLRFieldGetter(field, get_Item_1);
            app.RegisterCLRFieldSetter(field, set_Item_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Item_1, AssignFromStack_Item_1);
            field = type.GetField("eventCall", flag);
            app.RegisterCLRFieldGetter(field, get_eventCall_2);
            app.RegisterCLRFieldSetter(field, set_eventCall_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_eventCall_2, AssignFromStack_eventCall_2);
            field = type.GetField("Label", flag);
            app.RegisterCLRFieldGetter(field, get_Label_3);
            app.RegisterCLRFieldSetter(field, set_Label_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_Label_3, AssignFromStack_Label_3);
            field = type.GetField("Back", flag);
            app.RegisterCLRFieldGetter(field, get_Back_4);
            app.RegisterCLRFieldSetter(field, set_Back_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_Back_4, AssignFromStack_Back_4);
            field = type.GetField("Content", flag);
            app.RegisterCLRFieldGetter(field, get_Content_5);
            app.RegisterCLRFieldSetter(field, set_Content_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_Content_5, AssignFromStack_Content_5);
            field = type.GetField("Context", flag);
            app.RegisterCLRFieldGetter(field, get_Context_6);
            app.RegisterCLRFieldSetter(field, set_Context_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_Context_6, AssignFromStack_Context_6);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.UIComposite.TabControl.TableContent());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.UIComposite.TabControl.TableContent[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }



        static object get_Parent_0(ref object o)
        {
            return ((huqiang.UIComposite.TabControl.TableContent)o).Parent;
        }

        static StackObject* CopyToStack_Parent_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl.TableContent)o).Parent;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Parent_0(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl.TableContent)o).Parent = (huqiang.UIComposite.TabControl)v;
        }

        static StackObject* AssignFromStack_Parent_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIComposite.TabControl @Parent = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl.TableContent)o).Parent = @Parent;
            return ptr_of_this_method;
        }

        static object get_Item_1(ref object o)
        {
            return ((huqiang.UIComposite.TabControl.TableContent)o).Item;
        }

        static StackObject* CopyToStack_Item_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl.TableContent)o).Item;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Item_1(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl.TableContent)o).Item = (huqiang.Core.HGUI.UIElement)v;
        }

        static StackObject* AssignFromStack_Item_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Core.HGUI.UIElement @Item = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl.TableContent)o).Item = @Item;
            return ptr_of_this_method;
        }

        static object get_eventCall_2(ref object o)
        {
            return ((huqiang.UIComposite.TabControl.TableContent)o).eventCall;
        }

        static StackObject* CopyToStack_eventCall_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl.TableContent)o).eventCall;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_eventCall_2(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl.TableContent)o).eventCall = (huqiang.UIEvent.UserEvent)v;
        }

        static StackObject* AssignFromStack_eventCall_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIEvent.UserEvent @eventCall = (huqiang.UIEvent.UserEvent)typeof(huqiang.UIEvent.UserEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl.TableContent)o).eventCall = @eventCall;
            return ptr_of_this_method;
        }

        static object get_Label_3(ref object o)
        {
            return ((huqiang.UIComposite.TabControl.TableContent)o).Label;
        }

        static StackObject* CopyToStack_Label_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl.TableContent)o).Label;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Label_3(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl.TableContent)o).Label = (huqiang.Core.HGUI.HText)v;
        }

        static StackObject* AssignFromStack_Label_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Core.HGUI.HText @Label = (huqiang.Core.HGUI.HText)typeof(huqiang.Core.HGUI.HText).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl.TableContent)o).Label = @Label;
            return ptr_of_this_method;
        }

        static object get_Back_4(ref object o)
        {
            return ((huqiang.UIComposite.TabControl.TableContent)o).Back;
        }

        static StackObject* CopyToStack_Back_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl.TableContent)o).Back;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Back_4(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl.TableContent)o).Back = (huqiang.Core.HGUI.HImage)v;
        }

        static StackObject* AssignFromStack_Back_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Core.HGUI.HImage @Back = (huqiang.Core.HGUI.HImage)typeof(huqiang.Core.HGUI.HImage).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl.TableContent)o).Back = @Back;
            return ptr_of_this_method;
        }

        static object get_Content_5(ref object o)
        {
            return ((huqiang.UIComposite.TabControl.TableContent)o).Content;
        }

        static StackObject* CopyToStack_Content_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl.TableContent)o).Content;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Content_5(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl.TableContent)o).Content = (huqiang.Core.HGUI.UIElement)v;
        }

        static StackObject* AssignFromStack_Content_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Core.HGUI.UIElement @Content = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl.TableContent)o).Content = @Content;
            return ptr_of_this_method;
        }

        static object get_Context_6(ref object o)
        {
            return ((huqiang.UIComposite.TabControl.TableContent)o).Context;
        }

        static StackObject* CopyToStack_Context_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl.TableContent)o).Context;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance, true);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method, true);
        }

        static void set_Context_6(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl.TableContent)o).Context = (System.Object)v;
        }

        static StackObject* AssignFromStack_Context_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Object @Context = (System.Object)typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl.TableContent)o).Context = @Context;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.UIComposite.TabControl.TableContent();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
